<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="./vue2.js"></script>
    <div id="box">
        <h2>所有的货物</h2>
        <ul>
            <li v-for="item in list">
                {{item.tittle}}---
                <span v-if="item.status===0">未发货</span>
                <span v-else-if="item.status===1">已发货</span>
                <span v-else="item.status===2">待签收</span>
            </li>
        </ul>
    </div>
    <script>
        new Vue({
            el:'#box',
            data:{
                list:[
                    {
                        tittle:'aaa',
                        status:0
                    },
                    {
                        tittle:'bbb',
                        status:1
                    },
                    {
                        tittle:'ccc',
                        status:2
                    }
                ]
            }
        })
    </script>
</body>
</html>